package com.atguigu.mapper;

import com.atguigu.entity.product.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    List<Category> findListByParentId(Long parentId);

    int selectCountByParentId(Long categoryId);

    List<Category> findAll();

    void batchInsert(List<Category> categoryList);
}
